// my.js
const request = require('./config/request')
const {
  BASEAPIAIIIIN,
  GPTSHIXIANJIA
} = require('./config/config')

module.exports = {
  //  获取他人信息
  getothers(data) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/getuserinformation'
    // let toke = true
    return request.post({
      url,
      data
    })
  },
  // 获取获赞和粉丝和关注
  getAchievements(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/getcount'
    // let toke = true
    return request.post({
      url,
      data
    })
  },
  // 获取关注用户的所有发布作品
  geFocusOnPeopleWorks(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/getcontentbyfollow'
    // let toke = true
    return request.post({
      url,
      data
    })
  },
  // 获取ta人灵感
  getInspiration(data) {
    let url = BASEAPIAIIIIN + '/app/content/querybyid'
    // let toke = true
    return request.post({
      url,
      data
    })
  },
  // 判断是否关注对方
  isAttention(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/isfollowtouser'
    // let toke = true
    return request.post({
      url,
      data
    })
  },
  // 关注用户
  attentionUser(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/addfollow'
    // let toke = true
    return request.post({
      url,
      data
    })
  },
  // 取消关注
  unfollow(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/removefollow'
    // let toke = true
    return request.post({
      url,
      data
    })
  },

  // 获取ta人模型列表
  getModelList(data) {
    let url = GPTSHIXIANJIA + '/api/app/ai-model-data/get-by-creator-id'
    // let toke = true
    return request.post({
      url,
      data
    })
  },



}